package www.wen.com.common.lib.bind;

import android.view.View;

import androidx.databinding.BindingAdapter;

/**
 * @author WEN
 * @Description:
 * @date 2021/9/13 15:50
 */
public class ViewBinding {

    @BindingAdapter(value = "bind:select")
    public static void bindSelect(View view,boolean select){
        if(view.isSelected() == select) return;
        view.setSelected(select);
    }

}
